<ion-header>
  <ion-toolbar color="primary">
    <ion-back-button color="light" slot="start" text="返回" defaultHref="/init"></ion-back-button>
    <ion-title>登录</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content padding>

  <ion-item>
    <ion-label color="primary" position="floating">邮箱/电话号码</ion-label>
    <ion-input clearInput [(ngModel)]="username"></ion-input>
  </ion-item>
  <ion-item>
    <ion-label color="primary" position="floating">密码</ion-label>
    <ion-input clearInput type="password" [(ngModel)]="password"></ion-input>
  </ion-item>
  <ion-button expand="block" color="primary" class="login-btn" (click)="login()">登录</ion-button>
  <div class="login-text">
    <div class="forget-pwd">忘记密码</div>
  </div>

</ion-content>